package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.XqmessageMapper;
import com.zch.dao.model.Xqmessage;
import com.zch.dao.model.XqmessageExample;
import com.zch.daoEx.XqmessageMapperEx;
import com.zch.daoEx.model.XqmessageEx;

@Service
public class XqmessageService {
	@Autowired
	private XqmessageMapper xqmessageMapper;	
    @Autowired
    private XqmessageMapperEx xqmessageMapperEx;
    
	public int countByExample(XqmessageExample example) {
		return this.xqmessageMapper.countByExample(example);
	}

	public Xqmessage selectByPrimaryKey(String id) {
		return this.xqmessageMapper.selectByPrimaryKey(id);
	}

	public List<Xqmessage> selectByExample(XqmessageExample example) {
		return this.xqmessageMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.xqmessageMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Xqmessage record) {
		return this.xqmessageMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(Xqmessage record) {
		return this.xqmessageMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(XqmessageExample example) {
		return this.xqmessageMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Xqmessage record, XqmessageExample example) {
		return this.xqmessageMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(Xqmessage record, XqmessageExample example) {
		return this.xqmessageMapper.updateByExample(record, example);
	}

	public int insert(Xqmessage record) {
		return this.xqmessageMapper.insert(record);
	}

	public int insertSelective(Xqmessage record) {
		return this.xqmessageMapper.insertSelective(record);
	}

    public List<XqmessageEx> selectList(Map<String, Object> map) {
        
        return this.xqmessageMapperEx.selectList(map);
    }

    public List<XqmessageEx> selectAppList(Map<String, Object> map) {
        return this.xqmessageMapperEx.selectAppList(map);
    }

    public XqmessageEx selectAppDetailList(Map<String, Object> map) {
        return this.xqmessageMapperEx.selectAppDetailList(map);
    }

    public List<XqmessageEx> selectMyList(Map<String, Object> map) {
        return this.xqmessageMapperEx.selectMyList(map);
    }

    public int cancleTops(Map<String, Object> map) {
        return this.xqmessageMapperEx.cancleTops(map);
    }
}
